package wsi.depend.model;

import org.rygh.core.model.graph.single.SGraph;
import org.rygh.core.xml.XmlBuilder;

import wsi.function.Function;

public class DependencyGraph extends
		SGraph<Function, Dependency, DependencyNode, DependencyEdge> {

	public DependencyGraph() {

	}

	public String toXmlString() {
		XmlBuilder xb = new XmlBuilder("functional_dependency");

		for (DependencyNode n : nodes)
			xb.append(n.toXmlString());

		xb.end();

		return xb.toString();
	}
}
